package com.qf.common.feigns;

import com.qf.common.model.QfUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "qf-center-service")
public interface UserApi {

    @GetMapping("/api/user/findByUsername")
    QfUser findByUsername(@RequestParam("username") String username);
}
